package startup

import (
	"github.com/redis/go-redis/v9"
	"time"
	"webook/pkg/ratelimit"
)

func InitRateLimiter(cmd redis.Cmdable) ratelimit.RateLimiter {
	return ratelimit.NewRedisSlideWindowRateLimiter(cmd, time.Second, 100)
}
